package com.whut.service;

import java.util.List;

import org.hibernate.mapping.Map;

import com.whut.model.User;
import com.whut.vo.UserRegisterInfo;


public interface UserManager {

	public abstract boolean exists(User u) throws Exception;
	public abstract boolean legalUser(User u) throws Exception;
	public abstract void add(User u) throws Exception;
	public abstract void add (UserRegisterInfo info)throws Exception;
	public abstract List<User> getUsers() throws Exception;	
	
	public abstract void addLoginTimes(User u) throws Exception;
	
	public abstract int checkPriority(User u) throws Exception;
	
	public abstract List<User> getUsersByPage(int page,int rows) throws Exception;
	public abstract Long getTotal(Object o) throws Exception;
	public abstract void editUser(User u) throws Exception;
	public abstract void removeUser(User u) throws Exception;
	public abstract List<User> findById(int id) throws Exception;
	

}